using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace jtgApp
{
    public class Global
    {
        //Vision information
        public static string getVersion(Context context)
        {
            string version = "";
            try
            {
                version = context.PackageManager.GetPackageInfo("jtgApp.jtgApp", 0).VersionName;
            }
            catch (Exception exception)
            {
                Toast.MakeText(context, exception.Message, ToastLength.Short);

            }
            return version;
        }
    }
}